﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usermanager.ascx.cs" Inherits="administrator_usercontrol_usermanager" %>
<asp:MultiView ID="mt1" ActiveViewIndex="0" runat="server">
<asp:View ID="view1" runat="server">
<table style="width:100%;">
    <tr>
        <td colspan="3" align="center">
            Quản lý khách hàng</td>
    </tr>
   
    <tr>
        <td colspan="3" align="center">
            <asp:GridView ID="GridView1" runat="server" BackColor="#DEBA84" 
                BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                CellSpacing="2" ShowFooter="True" 
                onpageindexchanging="GridView1_PageIndexChanging" 
                onrowcommand="GridView1_RowCommand" onrowdatabound="GridView1_RowDataBound" onrowdeleting="GridView1_RowDeleting" 
                >
                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                <Columns>
                    
                    <asp:BoundField DataField="TenDangNhap" HeaderText="Tên đăng nhập" >
                    <HeaderStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="HoTen" HeaderText="Họ tên" >
                    <HeaderStyle Width="250px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CMND" HeaderText="CMND" >
                    <HeaderStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="SoDienThoai" HeaderText="Số điện thoại" >
                    <HeaderStyle Width="150px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Email" HeaderText="Email" >
                    <HeaderStyle Width="50px" />
                    </asp:BoundField>
                     <asp:CheckBoxField DataField="IsBad" HeaderText="Xấu" >
                    <HeaderStyle Width="50px" />
                    </asp:CheckBoxField>
                    <asp:TemplateField HeaderText="Sửa">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkbSua" CommandName="Edit" CommandArgument='<%# Eval("ID") %>' CausesValidation="false">Sửa</asp:LinkButton>
                        </ItemTemplate>       
                        <HeaderStyle Width="50px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lkbXoa" CommandName="Delete" CommandArgument='<%#Eval("ID") %>' CausesValidation="false">Xóa</asp:LinkButton>
                        </ItemTemplate>
                        
                        <HeaderStyle Width="50px" />
                    </asp:TemplateField>
                </Columns>
              
                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
              
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>
</asp:View>

<asp:View ID="view2" runat="server">


    <table style="width:100%;">
        <tr>
            <td align="center" colspan="4">
                Thông tin sản phẩm</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Label ID="Lbthongbao" runat="server" Font-Bold="False" Font-Italic="True" 
                    ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Tên đăng nhập:</td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            </td>
            <td>
                Email:</td>
            <td>
                <asp:TextBox ID="TextBox4" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Họ và tên:</td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            </td>
            <td>
                Câu hỏi:</td>
            <td>
                <asp:TextBox ID="TextBox5" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                CMND:</td>
            <td>
                <asp:TextBox ID="TextBox8" runat="server" Enabled="False" Width="200px"></asp:TextBox>
            </td>
            <td>
                Trả lời:</td>
            <td>
                <asp:TextBox ID="TextBox9" runat="server" Enabled="False" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Số điện thoại:</td>
            <td>
                <asp:TextBox ID="TextBox3" runat="server" Width="200px" Enabled="False"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
            <td>
                <asp:Label ID="LbID" runat="server" Visible="False"></asp:Label>
                <asp:Label ID="Label2" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Địa chỉ:</td>
            <td colspan="3">
                <asp:TextBox ID="TextBox6" runat="server" TextMode="MultiLine" Width="620px" 
                    Height="37px" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Ghi chú</td>
            <td colspan="3">
                <asp:TextBox ID="TextBox10" runat="server" Height="37px" TextMode="MultiLine" 
                    Width="620px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="Button2" runat="server" CausesValidation="False" 
                    onclick="Button2_Click" Text="&lt;&lt; Quay lại" />
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="Button1" runat="server" Text="Lưu" Width="100px" 
                    onclick="Button1_Click" />
            </td>
        </tr>
    </table>


</asp:View>
</asp:MultiView>